package cn.ztuo.bitrade.service;

import cn.ztuo.bitrade.dao.BourseProductManagerDao;
import cn.ztuo.bitrade.dao.SysSiteDao;
import cn.ztuo.bitrade.entity.BourseProductManager;
import cn.ztuo.bitrade.entity.SysSite;
import cn.ztuo.bitrade.pagination.Criteria;
import cn.ztuo.bitrade.pagination.Restrictions;
import cn.ztuo.bitrade.service.Base.BaseService;
import cn.ztuo.bitrade.util.BeanUtils;
import cn.ztuo.bitrade.vo.product.ProductManagerAddReqVo;
import cn.ztuo.bitrade.vo.product.ProductManagerFindReqVo;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class SysSiteService extends BaseService {
    @Autowired
    private SysSiteDao siteDao;

    public SysSite saveAndFlush(SysSite site) {
        return siteDao.saveAndFlush(site);
    }
    @Override
    public List<SysSite> findAll() {
        return siteDao.findAll();
    }
}
